//
//  KTCoinExchangeController.swift
//  KOLToken
//
//  Created by san.yang on 2020/3/8.
//  Copyright © 2020 iOS-team. All rights reserved.
//

import UIKit
import DynamicColor
import JXSegmentedView
/// coin在某个交易所的详情页
class KTCoinExchangeController: UIViewController {
    
    // MARK: - property
    
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "交易所行情"
        initValue()
        buildUI()
    }
    
    // MARK: - init
    
    private func buildUI() {
        view.addSubview(headerView)
        view.addSubview(kLineView)
    }
    
    override func viewWillLayoutSubviews() {
        headerView.snp.makeConstraints { (make) in
            make.left.top.right.equalToSuperview()
            make.height.equalTo(160)
        }
        
        kLineView.snp.makeConstraints { (make) in
            make.left.right.equalToSuperview()
            make.top.equalTo(headerView.snp_bottom).offset(10)
            make.height.equalTo(200)
        }
    }
    
    // MARK: - lazy
    
    lazy var headerView: KTCoinDetailSinglePankouView = {
        let view = KTCoinDetailSinglePankouView.init()
        return view
    }()
    
    lazy var kLineView: KTCoinDetailKLineView = {
        let view = KTCoinDetailKLineView.init()
        return view
    }()
}
